var $ = layui.jquery,
    messageId=getQueryVariable("messageId")
;


initMessage(messageId);
//查询消息详情
function initMessage(id){
    $.ajax({
        data:{"id":id},
        url:"message/queryByid",
        dataType:"json",
        async:false,
        success : function (da) {
            if(da.status==200 ){
                let res=da.data;
                $("#arrangeName")[0].innerHTML=res.arrangeName;
                $("#createTime")[0].innerHTML=res.createTime;
                $("#executionLevel")[0].innerHTML=res.executionLevel;
                $("#content")[0].innerHTML=res.content;
            }
        }
    });
}

$("#shutdown").on('click',function () {
    parent.detab("views/jsp/BasicData/tpl/viewArrangementMessage.jsp?messageId="+messageId);
})
